import request from '@/utils/request'

// 查询检测列表列表
export function listTesting(query) {
  return request({
    url: '/intelligence/testing/list',
    method: 'get',
    params: query
  })
}

// 查询检测列表详细
export function getTesting(testingId) {
  return request({
    url: '/intelligence/testing/' + testingId,
    method: 'get'
  })
}

// 新增检测列表
export function addTesting(data) {
  return request({
    url: '/intelligence/testing',
    method: 'post',
    data: data
  })
}

// 修改检测列表
export function updateTesting(data) {
  return request({
    url: '/intelligence/testing',
    method: 'put',
    data: data
  })
}

// 删除检测列表
export function delTesting(testingId) {
  return request({
    url: '/intelligence/testing/' + testingId,
    method: 'delete'
  })
}

// 导出检测列表
export function exportTesting(query) {
  return request({
    url: '/intelligence/testing/export',
    method: 'get',
    params: query
  })
}